package demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import demo.service.ICategoryService;

@RestController
@RequestMapping("category")
public class CategoryController {

	@Resource
	private ICategoryService service;
	
	@RequestMapping("del.do")
	public Integer del(Integer id) {
		return service.del(id);
	}
	
}
